import Vue from 'vue';
import vBack from '@/components/back'
import Page from '@/components/page'
import Card from '@/components/card'
import vButton from '@/components/button'
import {
    Icon,
    Tabs,
    Tab,
    CellGroup,
    Cell,
    Field,
    AddressEdit,
    Button,
    Popup,
    NoticeBar,
    Swipe,
    SwipeItem,
    RadioGroup,
    Radio,
    Dialog,
    Area,
    PullRefresh,
    List,
    Picker,
    Empty
} from "vant";

let components = [
    Icon,
    Tabs,
    Tab,
    CellGroup,
    Cell,
    Field,
    AddressEdit,
    Button,
    Popup,
    NoticeBar,
    Swipe,
    SwipeItem,
    RadioGroup,
    Radio,
    Dialog,
    Area,
    PullRefresh,
    List,
    Picker,
    Empty
];

components.forEach(item => {
    Vue.use(item);
});
Vue.component('vBack',vBack);
Vue.component('Page',Page);
Vue.component('Card',Card);
Vue.component('vButton',vButton);
